package business.report.impl;

import business.report.HealthCareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.HealthCare;
import report.domain.HealthCareCriteria;
import report.mapper.HealthCareMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "healthCareService")
public class HealthCareServiceImpl implements HealthCareService{
    @Autowired
    HealthCareMapper healthCareMapper;

    @Override
    public List<HealthCare> getHealthCare() {
        HealthCareCriteria careCriteria = new HealthCareCriteria();
        careCriteria.createCriteria().getAllCriteria();
        return healthCareMapper.selectByExample(careCriteria);
    }
}
